<?php

class Form_Login extends Pldkp_Form
{ 
    public function init()
    {
        $this->setName('login');
        
        $email = new Zend_Form_Element_Text('email');
        $email->setRequired(true)
              ->setLabel('Email')
              ->addValidator('NotEmpty');
              
        $password = new Zend_Form_Element_Password('password');
        $password->setRequired(true)
                 ->setLabel('Password')
                 ->addValidator('NotEmpty');
              
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Login');
        
        $this->addElements(array($email, $password, $submit));
    }
}